x86/hvm: allow guest_request vm_events coming from userspace
authorAlexandru Isaila <aisaila@bitdefender.com>
Fri, 25 Aug 2017 12:05:09 +0000 (14:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Aug 2017 12:05:09 +0000 (14:05 +0200)
commit38f21760972a4405d47e4936c91071e073c834c6
tree5e37fa3248f37bcb5c6530dc7877ca549507c042
parente466ec4f51d38a2c9d02bf9f3d5e43e47db2d66b
x86/hvm: allow guest_request vm_events coming from userspace

In some introspection usecases, an in-guest agent needs to communicate
with the external introspection agent.  An existing mechanism is
HVMOP_guest_request_vm_event, but this is restricted to kernel usecases
like all other hypercalls.

Introduce a mechanism whereby the introspection agent can whitelist the
use of HVMOP_guest_request_vm_event directly from userspace.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_monitor.c
xen/arch/x86/hvm/hypercall.c
xen/common/monitor.c
xen/include/asm-x86/domain.h
xen/include/public/domctl.h